import android.os.Bundle

class MainActivity : SecondActivity() {
    val TAG = "SecondActivity"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Log.d(TAG, "$TAG On create.")
        this.setContentView(R.layout.activity_second)

        //接收数据
        /al intent = getIntent()
        val name = intent.getStringExtra("name")
        val txtName = findViewById<TextView>(R.id.text_name2)
        /tName.setText(name)
        txtName.text = name
    }




}